package com.huaxindata.im.util;

import android.content.Context;
import android.telephony.TelephonyManager;

import static android.content.Context.TELEPHONY_SERVICE;

/**
 * Created by Administrator on 2017/10/17.
 * 获取手机设备id
 */

public class TelPhoneUtil {
    public static String getIMEI(Context context){
        TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(TELEPHONY_SERVICE);
        String imei=telephonyManager.getDeviceId();
        return imei;
    }
}
